package com.generator.statics.inboundStatics.dao;

import com.generator.statics.inboundStatics.pojo.*;
import com.generator.util.PageModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface InboundStaticsMap {

//    测试
//    public List<Warehouse> getWarehouse(Warehouse warehouse);

    //    查询所有入库记录
    public List<QueryWarehouseList> QueryWarehouseList(QueryWarehouseList queryWarehouseList);

    //通过仓库id查询采购单信息
    public List<JoinCountDetail> queryRkByWareID(JoinCountDetail joinCountDetail);

    //通过采购单查询采购单详情
    public CPurchaseDetail getCDetailsByPurchaseId(String purchaseid);

    //通过采购单号查询采购明细
    public List<CDetails> getGoodsByPurchaseId(String purchaseid);

    //根据条件查询入库记录
    public List<QueryWarehouseList> queryWareHouseByCondition(WareHouseCondition wareHouseCondition);

    /**
     * 查找省份
     */
    public List<Province> getAllProvince();

    /**
     * 查找城市
     */
    public List<City> getAllCity(City city);
}
